package org.dromara.system.domain.bo;

import org.dromara.system.domain.ZtVip;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * VIP业务对象 zt_vip
 *
 * @author Lion Li
 * @date 2024-06-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ZtVip.class, reverseConvertGenerate = false)
public class ZtVipBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 会员名称
     */
    @NotBlank(message = "会员名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 有效期（天）
     */
    @NotNull(message = "有效期（天）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long termOfValidity;

    /**
     * 原价
     */
    @NotNull(message = "原价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal originalPrice;

    /**
     * 优惠价
     */
    @NotNull(message = "优惠价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal specialPrice;

    /**
     * 是否开启（Y：是，N：否）
     */
    @NotBlank(message = "是否开启（Y：是，N：否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 是否首单（Y：是，N：否）
     */
    @NotBlank(message = "是否首单（Y：是，N：否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String firstOrder;

    /**
     * 备注
     */
    private String remark;


}
